﻿using SelfManagement.Database.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SelfManagement.Database.POCO
{
    [Table("DailyTask")]
    public class DailyTask: EntityBase
    {
        /// <summary>
        /// 任务名称
        /// </summary>
        [StringLength(500)]
        public string TaskName { get; set; }
        
        /// <summary>
        /// 估计时间以分钟为单位
        /// </summary>
        public int EstimateTime { get; set; }

        /// <summary>
        /// 实际用时
        /// </summary>
        public int RealTime { get; set; }

        /// <summary>
        /// 任务状态
        /// </summary>
        public TaskStatus Status { get; set; } = TaskStatus.Uncompleted; // 默认未完成

        /// <summary>
        /// 任务排序
        /// </summary>
        public int Order { get; set; }
    }

}
